﻿@model Chapter2Applications.Models.GuestResponse

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <link rel="stylesheet" type="text/css" href="~/Content/Site.css" />
    <title>RsvpForm</title>
</head>
<body>
    <div>
        @using (Html.BeginForm())
        { 
            @Html.ValidationSummary()
            <p>Your Name: @Html.TextBoxFor(x => x.Name)</p>
            <p>Your Email: @Html.TextBoxFor(x => x.Email)</p>
            <p>Your Phone: @Html.TextBoxFor(x => x.Phone)</p>
            <p>
                Will you attend?
                @Html.DropDownListFor(x => x.WillAttend, new[] 
                    { 
                        new SelectListItem() { Text = "Yes, I will be there", Value = bool.TrueString },
                        new SelectListItem() { Text = "No, I cannot come", Value = bool.FalseString }
                    },
                    "Choose an option") 
            </p>
            <input type="submit" value="Send Answer">
        }
    </div>
</body>
</html>
